<?php
/**
 * ISmarty
 *
 * @package if
 * @subpackage module.smarty
 * @since 1.0
 */
class ISmarty {
	private static $instance;
	
	/**
	 * 加载Smarty
	 *
	 * @return Smarty
	 */
	static function &load() {
		if (!self::$instance) {
			$dirname = dirname(__FILE__);
			require($dirname . "/Smarty.class.php");
			self::$instance = new Smarty();
		}
		return self::$instance;
	}
}

?>